<div class="group_dinamic pbdiv">
{strip}
<script type="text/javascript">
{literal}
function showBlock(id)
{  $('div.block').hide();
  $('div.bl_'+id).fadeIn();
}
{/literal}
</script>
{/strip}
{foreach from=$Blocks item="curr" name="blcks"}{if $smarty.foreach.blcks.first neq true} | {/if}<a href="#" class="menu2" onclick="showBlock('{$curr.code}');return false;">{$curr.title}</a>{/foreach}
{foreach from=$Blocks item="curr" name="cld"}
<div class="block bl_{$curr.code}" style="display:{if $smarty.foreach.cld.first eq true}block{else}none{/if}">
 {$curr.body|unescape}
</div>
{/foreach}
</div>